package semiproject.models;

public class BookVO {
	private String bkno;
	private String name;
	private String publisher;
	private String writer;
	private String genre;
	private int price;
	private boolean isRent;
	private String regDate;

	public BookVO(String name, String publisher, String writer, String genre, int price) {
		this.name = name;
		this.publisher = publisher;
		this.writer = writer;
		this.genre = genre;
		this.price = price;
	}

	public String getBkno() { return bkno; }
	public void setBkno(String bkno) { this.bkno = bkno; }

	public String getName() { return name; }
	public void setName(String name) { this.name = name; }

	public String getPublisher() { return publisher; }
	public void setPublisher(String publisher) { this.publisher = publisher; }

	public String getWriter() { return writer; }
	public void setWriter(String writer) { this.writer = writer; }

	public String getGenre() { return genre; }
	public void setGenre(String genre) { this.genre = genre; }

	public int getPrice() { return price; }
	public void setPrice(int price) { this.price = price; }

	public boolean getIsRent() { return isRent; }
	public void setIsRent(boolean isRent) { this.isRent = isRent; }

	public String getRegDate() { return regDate; }
	public void setRegDate(String regDate) { this.regDate = regDate; }
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(bkno).append("/").append(name).append("/").append(publisher).append("/").append(writer)
		.append("/").append(genre).append("/").append(price).append("/").append(isRent).append("/").append(regDate);
		return sb.toString();
	}
}
